diff options
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(master-data)/gtc/page.tsx')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/(master-data)/gtc/page.tsx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/app/[lng]/evcp/(evcp)/(master-data)/gtc/page.tsx b/app/[lng]/evcp/(evcp)/(master-data)/gtc/page.tsx index 33c504df..c899d99f 100644 --- a/app/[lng]/evcp/(evcp)/(master-data)/gtc/page.tsx +++ b/app/[lng]/evcp/(evcp)/(master-data)/gtc/page.tsx @@ -8,12 +8,22 @@ import { InformationButton } from "@/components/information/information-button" import { GtcDocumentsTable } from "@/lib/gtc-contract/status/gtc-contract-table" import { getGtcDocuments,getProjectsForFilter,getUsersForFilter } from "@/lib/gtc-contract/service" import { searchParamsCache } from "@/lib/gtc-contract/validations" +import { useTranslation } from "@/i18n" + +interface IndexPageProps { + params: Promise<{ lng: string }> + searchParams: Promise<SearchParams> +} interface GtcPageProps { + params: Promise<{ lng: string }> searchParams: Promise<SearchParams> } -export default async function GtcPage(props: GtcPageProps) { +export default async function GtcPage(props: IndexPageProps) { + const { lng } = await props.params + const { t } = await useTranslation(lng, 'menu') + const searchParams = await props.searchParams const search = searchParamsCache.parse(searchParams) const validFilters = getValidFilters(search.filters) @@ -34,7 +44,7 @@ export default async function GtcPage(props: GtcPageProps) { <div> <div className="flex items-center gap-2"> <h2 className="text-2xl font-bold tracking-tight"> - GTC 목록관리 + {t('menu.master_data.gtc')} </h2> <InformationButton pagePath="evcp/basic-contract-template/gtc" /> </div> |
